home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_2 / hold / interface.a < prev    next >
Text File  |  1992-01-18  |  708b  |  27 lines

  1. *************************************************************************
  2. *   HandlerInterface()
  3. *
  4. *   This code is needed to convert the calling sequence performed by
  5. *   the input.task for the input stream management into something
  6. *   that a C program can understand.
  7. *
  8. *   This routine expects a pointer to an InputEvent in A0, a pointer
  9. *   to a data area in A1.  These values are transferred to the stack
  10. *   in the order that a C program would need to find them.  Since the
  11. *   actual handler is written in C, this works out fine.
  12. *
  13. *   Author: Rob Peck, 12/1/85
  14. *
  15.     csect    text
  16.  
  17.     xref    _C_handler
  18.     xdef    _HandlerInterface
  19.  
  20. _HandlerInterface:
  21.     movem.L    A0/A1,-(A7)
  22.     jsr    _C_handler
  23.     addq.L    #8,A7
  24.     rts
  25.  
  26.     end
  27.